package cc.laop.dao.system;

import cc.laop.dao.BaseMapper;
import cc.laop.entity.system.Resource;

import java.util.List;


public interface ResourceMapper extends BaseMapper<Resource> {
    /**
     * 获取角色资源
     *
     * @param roleid
     * @return
     */
    public List<Resource> selectByRole(int roleid);

    /**
     * 删除角色与资源的关联
     *
     * @param resourceid
     * @return
     */
    public int deleteResourceRole(int resourceid);
}
